# lst=[12, -5, -22, -10, -26, 35, 0, 49, 3, -21]
# print(lst[::-1])

# lst=[12, -5, -22, -10, -26, 35, 0, 49, 3, -21]
# # print(lst[::2])
# print(lst[1::2])

# print([1, 2, 3] - [1, 2, 3])

# print([1,2,3]*3)

# lst=[34,6,7,0,0,0,9]
# n=0
# for i in lst:
#     if i==0:
#         lst.remove(i)
#         n+=1
# print(n)

# li = ['hello','se',520,123,446]
# lt = li
# li[0] = 'li'
# print(lt)

# print([1,2,[3]]+[4,5])

# data=[[1]*3]*3
# data[0][1]=45
# print(data[2][1])

# lst=[12, -5, -22, -10, -26, 35, 0, 49, 3, -21]
# print(lst[0:3], lst[:3])

# a=[1,2,[3,4],"123"]
# print(len(a))
#
# b = (1, 2, "123", [12, 5])
# print(b[0])

# number = [1,5,2,4,5,6,0]
# result = sorted(number)
# print(number)
# print(result)

# number = [1,5,2,4,5,6,0]
# print(sum(number)/len(number))

# b = 1, 2, 3
# x = 22, 5, 7
# tuple(2,)

# x = (1, 2, 3, 4)
# x[0] = 5
# print(x)

# x = ([1], [2])
# x[0].append(3)
# print(x)

# x = 10
# y = (x)
# print(type(y))

# tp = (1, 2)
# print(tp * 2)

# S="1,2,3,4"
# L = S.split(sep=',')
# X=[]
# for a in L:
#     X.append(int(a))
# print(X)

# b=[1,2,3]
# b[2]=b
# s = 0
# for row in b:
#     if type(row)==list:
#         for elem in row:
#             s += elem
#     else:
#         s+=row
# print(s)

# words=['cat','window', 'defenestrate']
# for w in words[:]:
#     if len(w)>6:
#         words.append(w)
# print(words)

# i = j = []
# i.append(30)
# print(i, j, end="")
# i = []
# j = []
# i.append(30)
# print(i, j)

# ls = [3.5, "Python", [10, "PYTHON"], 3.6]
# print(ls[2][-1][1])

# print(list("abcd"))
# lst = [1, 20]
# lst.append(5)
# print(lst)

# print(list(map(str, [1, 2, 3])))

# l=[1,2,3,4,5,6,7,8,9,0]
# print(l[1::2])

# a='0123456789'
# b=list(a)
# s=[]
# for x in b:
#     if x:
#         s=s+[x]
# print(s)

# n=3
# a=[0]*n
# for i in range(n):
#     a[i]=[0]*i

# t = tuple([00, 1, 2])
# print(type(t))

# s=['b','c','e','z','f','x']
# s.insert(0,'a')
# s.pop()
# s.remove('z')
# s.insert(3,'d')
# s.append('g')
# print(s)
#
# s=['b','c','e','z','f','x']
# s.pop(-1)
# s.append('g')
# s.remove('z')
# s.insert(0,'a')
# s.insert(3,'d')
# print(s)
#
#
# s=['b','c','e','z','f','x']
# s.insert(0,'a')
# s.pop(0)
# s.remove('z')
# s.insert(3,'d')
# s.append('g')
# print(s)

# print(2 in set(range(6)))
# print(2 in set("123456"))
#
# print(2 in list(range(6)))

# x = [1, 2, 3]
# y = [4, 5, 6]
# # x += y
# # x.extend(y)
# x=x.append(y)
# print(x)

# x=list('python')
# x=list['python']
# x = 0

# tup = ("a","b","c", (1, 2))
# tup.append("d")
# tup.remove("a")
# tup[2] = "e"

# tup1=(1)
# tup2=(1,)
# tup3=(1,0)
# print(tup1-tup3[1])
#
# print(tup2[-1]-tup3[1])

# tup = ("a", "b", "c")
# print(tup)
# tup.remove("a")
# tup[2] = "e"

# values = [[3, 4, 5, 1], [33, 6, 1, 2]]
#
# v = values[0][0]
# for row in range(0, len(values)):
#     for column in range(0, len(values[row])):
#         if v < values[row][column]:
#             v = values[row][column]
# print(v)

# list1=[1,43]
# list2=list1
# list1[0]=22
# print(list2[0])

# print(len('3//11//2018'.split('/')))

# lst=[3,4,5,6,5,4,3]
# lst.remove(3)
# print(lst[0])

# print(list(range(2,12,2))[:-2].pop())

# d1=[1,5,7]
# d2=d1.copy()
# d1[0]=6
# print(d1[0]+d2[0])

# lst1=[1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31]
# lst2=[2,3,6,7,10,11,14,15,18,19,22,23,26,27,30,31]
# lst3=[4,5,6,7,12,13,14,15,20,21,22,23,28,29,30,31]
# lst4=[8,9,10,11,12,13,14,15,24,25,26,27,28,29,30,31]
# lst5=[16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]
# s=input()
# print((lst1[0] if s[0]=="1" else 0)
#         +(lst2[0] if s[1]=="1" else 0)
#         +(lst3[0] if s[2]=="1" else 0)
#         +(lst4[0] if s[3]=="1" else 0)
#         +(lst5[0] if s[4]=="1" else 0))

# print(list(range(2,10,3)))
# print(list(range(5)))
# print(list(range(10,-10,-5)))

# row=[0]*3
# data=[row,row,row]
# data[2][2]=7
# print(data[0][2])

# data=[[0]*3] *3
# data[2][2]=7
# print(data[0][2])

# data=[]
# for i in range(3):
#     data.append([0]*3)
# data[2][2]=7
# print(data[0][2])

# mat=[[i*3+j+1 for j in range(3)] for i in range(5)]
# mattrans=[[row[col] for row in mat] for col in range(3)]
# print(mattrans[1][3])

# students=[(3180102988,"褚好"),
#                   (3170102465,"王凯亮"),
#                   (3160104456,"李永"),
#                   (3171104169,"陈鑫"),
#                   (318400429,"徐杭诚")]
#
# for row in students: #按行存取
#     print(row[0],row[1])
# print()
#
# for id,name in students:
#     print(id, name)
#
# for index in range(len(students)):  #按索引存取
#     print(students[index][0], students[index][1])

# print(sum((1,3,5,7,9))/len((1,3,5,7,9)))

# t=1
# t,a=2,t+1
# print(a)

# ls = [1, 2, 3, 4, 1]
# s = set(ls)
# print(s)
# a = int(1)
# b = int(2)
# print("True={}, False={}".format(a, b))

# contacts = [
# {"name": "Qi Lee", "mobile": 13946253589},
# {"name": "Anny Hofman", "mobile": 13651323101}
# ]
#
# name = input()
# isFound = False
#
# for contact in contacts:
#     if contact["name"] == name:
#         isFound = True
#         print(contact["mobile"])
#         break
# if isFound != True:
#     print("用户不存在")

# students = [('John','A',25), ('Mike',"C",19),
#             ('Mike',"B",12), ('Mike','C',18),
#             ('Bom','D',10),  ('Mike','D',19)]
#
# stuA = students.copy()
# stuA.sort()
# print(stuA)
#
# def myKey(x):
#     return x[2] % 10
# stuB = sorted(students,key = myKey)
# print(stuB)
#
# stuC = sorted(students,key = lambda x :x[1])
# print(stuC)
#
# def myKey2(x):
#     return (-x[2],x[1],x[0])
# students.sort(key = myKey2)
# print(students)

# m = int(input())
# sum = 0
# for i in range(11, m+1):
#     sum = sum + i
# print("sum = {}".format(sum))

# lst = list(eval(input()))
# lst2 = []
# for x in lst:
#     if not (x in lst2):
#         lst2.append(x)
# i = 0
# for x in lst2:
#     if len(lst2) - 1 == i:
#         break
#     print(x, end=' ')
#     i += 1
# print(lst2[i])

# lst = list(map(int, input().split()))
# s = int(sum(lst) / len(lst))
# for n in lst:
#     if n > s:
#         print(n, end=' ')

# n = int(input())
# count = 0
# sum = 0
# while n != 0:
#     count+=1
#     sum += n % 10
#     n //= 10
# print(count, sum)

# str = input()
# for i in range(len(str)-1,-1, -1):
#     if str[i] == 'p':
#         print(i, 'p')
#     elif str[i] == 's':
#         print(i, 's')

# dict = {[1, 2, 3]: "user"}
# print(dict)

# dic={"赵洁" : 15264771766,"张秀华" : 13063767486,"胡桂珍" : 15146046882,"龚丽丽" : 13606379542,"岳瑜" : 13611987725}
# print(dic.get("张军",None))

# dic1={"赵洁" : 15264771766,"张秀华" : 13063767486,"胡桂珍" : 15146046882,"龚丽丽" : 13606379542,"岳瑜" : 13611987725}
# dic2={"王玉兰" : 15619397270,"王强" : 15929494512,"王桂荣" : 13794876998,"邓玉英" : 18890393268,"何小红" : 13292597821}
# # dic3=dic1.update(dic2)
# # print(dic3["王强"])
# print(dic1)
# print(dic2)

# a = [1, 2, 3, 4, 1]
# a = list(set(a))
# print(a)

# dic = {(1, 2), "456", 1}
# print(dic)
# dic.remove(1)
# print(dic)

# print({1, 3, 2} > {1, 2, 3})
# lst = set([0,4,5,6,0,7,8])
# print(type(lst))
# print(len(set([0,4,5,6,0,7,8])))

# a = {}
# print(type(a))

# print( "what" in {"love","python",123,"what","good"})

# momthdays=dict(Jan=31,Feb=28,Mar=31,Apr=30)

# print(list("123"))
# print(tuple("123"))
# print(set("123"))

d = {"2018": "小明", "2019": "小红", "2020": "小白"}
# di = d.items()
# print(di)
# print(type(d.items()))
x = "2018"
y = "小明"
# print(x in d)
# print(y in d)

# d={1 : 2, '3' : 4}
# print(d)
# d.update({3:1})
# print(d)
# d[3]=1
# print(d)
# d['3']=1
# print(d)
# del(d[1])
# print(d)

# s = {1, 2, 3, 4}
# print(len(s))
# print(s)

# a={i for i in range(1,4)}
# print(a)

# a={i for i in range(1,10)}
# b={i for i in range(12) if i%2==1 }
# print(a&b)

# a = {}
# a=set()
# a=set(list("Python"))
# print(a[0])
# print(type(a))
# a=set(list("Python"))
# print(a)
# print(len(a))
# max(a)
# a - {1}
# print(a)

# a={5:'F',8:'C',4:'D',9:'A',3:'K',6:'L'}
# b = sorted(a.items())
# print(b)
# b = sorted(a.items(),key=lambda x:x[0])
# print(b)
# b = sorted(a)
# print(b)
# b = sorted(a.items(),key=lambda x:x[1])
# print(b)

# a = (1, 2, 3)
# b = set([1, 2, 3])
# c = "123"
# la = list(a)
# print(la)
# lb = list(b)
# print(type(b))
# print(lb)
# lc = list(c)
# print(lc)

# a={'Q':10}
# b={'Q':15}
# n={}
# n['Q']=n.get('Q',0)+a.get('Q')
# n['Q']=n.get('Q',0)+b.get('Q')
# print(n)
#
# squares={x:x*x  for x in range(20)}
# print(squares[12])

# jack = {'id':'10000', 'name':'Jack Ma', 'gender':'male','age':47, 'title':'CEO'}
# print(jack["name"])
# print(jack.get("salary",10000))
# print(jack)

#print({1,2,3}-{2,3,4})

# D={"name":"Zhangsan","sex":"M","address":"Nanjing","phone":"123456"}
# print(list(D.items()))
# print(D["phone"])
# D["address"] = "Shanghai"
# print(D["address"])
# D["age"] = 20
# print(D)
# D.pop("sex")
# print(D)
# if D.get("name") != None:
#     print("有元素键为%s" % "name")
# for d in D.items():
#     print(d[0], d[1])

# s1={1,2,3,4,5}
# s2={6,7,8,9,10}
# a=input().split(',')
# a=[int(x) for x in a]
# s3 = set(a)
# b=list(s2-s3)
# b = sorted(b)
# print(*b)

# month = {1:"Mon", 2:"Tue", 3:"Wed", 4:"Thu", 5:"Fri", 6:"Sat", 7:"Sun"}
# m = int(input())
# print(month[m])

s = set([21, 234, -32, 3, -55])
print(s)
print(max(s))
print(min(s))